import React, { Component } from 'react'
import { Route, Switch, Redirect } from 'react-router'
import ModifyDeviceList from '../../../../../components/ModifyDevice/ModifyDeviceList'
import SpecificModifyDevice from '../../../../../components/ModifyDevice/SpecificModifyDevice'


export default class ModifyDevice extends Component {
    render() {
        return (
            <Switch>
                <Route path='/personal/modifyDevice' exact={true} component={ModifyDeviceList} />
                <Route path='/personal/modifyDevice/:deviceID' component={SpecificModifyDevice} />
                <Redirect to="/personal/modifyDevice" />
            </Switch>
        )
    }
}
